home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung (Tewi)(1994).iso
/
magazine
/
drdobbs
/
ddjcompr
/
urban
/
setpoint.c
< prev
next >
Wrap
Text File
|
1991-04-30
|
292b
|
20 lines
set_point() {
unsigned int d;
hk=(hk+t[at])%HKSIZE;
hv=(hv+t[at])%HVSIZE;
d=(TSIZE+at-to)%TSIZE;
while (d) {
if(h[hk].v==hv) break;
hks=hk;
hvs=hv;
backhash();
--d;
}
zr=h[hk].z;
or=h[hk].o;
#define ZP zt[d][zr][or]
point=low+((high-low)*ZP.z)/ZP.s;
}